<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<meta name="viewport" content="width=device-width, initial-scale=1">
		<title>v-if else</title>
	<body>
		<div id="app">
			<p v-if="status==1">当status=1</p>
			<p v-else-if="status==2">当status=2</p>
			<p v-else>else</p>
		</div>
		<script src="../js/vue.js"></script>
		<script>
			new Vue({
				el:"#app",
				data:{
					status:3,
				}
			})
		</script>
	</body>
</html>